<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Tools\Services\JsonService;
use Illuminate\Http\Request;

class BaseController extends Controller
{
    //
    protected $pagesize=10;
    public function __construct()
    {
        $this->pagesize = config('page.pagesize');
    }

    /**
     * 错误提醒页面
     * @param string $mg
     * @param int $url
     */
//    protected function failed($msg = '页面异常',$url = 0)
//    {
//        $request = new Request();
//        if($request->isMethod('ajax')){
//            exit(JsonService::fail($msg,$url))->;
//        }
//    }

}
